

def main():
	str = input("请输入四个数字,以空格分隔：")
	nums = str.split()
	print("四个数字的和为：", add(nums[:4]))

def add(list):
	sum = 0
	for i in list:
		sum += int(i)
	return sum


main()